 <?php
 include("include/textcenter.php");
 include("include/db.php");
$id = $_GET['id'];
$select = "select * from vnf_attribute where AttributeID=".$id;
$result = mysql_query($select);
if(isset($_POST['SubmitUpdate']))
{  
    $ProductNo = $_POST['ProductNo'];
    $SKU= $_POST['SKU'];
    $Attribute1 = $_POST['Attribute1'];
    $Attribute2 = $_POST['Attribute2'];
    $Attribute3 = $_POST['Attribute3'];
    $Attribute4 = $_POST['Attribute4'];
    $Attribute5 = $_POST['Attribute5'];
    $Attribute6 = $_POST['Attribute6'];
    $Attribute7 = $_POST['Attribute7'];
    $Attribute8 = $_POST['Attribute8'];
    $Attribute9 = $_POST['Attribute9'];
    $Attribute10 = $_POST['Attribute10'];
    $Price = $_POST['Price'];
    $Cost = $_POST['Cost'];
    $Quantity = $_POST['Quantity'];
    $Unit = $_POST['Unit'];
    $Weight= $_POST['Weight'];
    $Length= $_POST['Length'];
    $Height = $_POST['Height'];
    $Width = $_POST['Width'];
    $ContainerCode = $_POST['ContainerCode'];
    $BillingInterval = $_POST['BillingInterval'];
    $SubscriptionPeriod = $_POST['SubscriptionPeriod'];
    $IntervalBegin = $_POST['IntervalBegin'];
    $NewBillType = $_POST['NewBillType'];
    $StartupFee = $_POST['StartupFee'];
    $RenewUpdateInd = $_POST['RenewUpdateInd'];
    $Isbn = $_POST['Isbn'];
    $Mpn = $_POST['Mpn'];
    $Upc = $_POST['Upc'];
    $Condition = $_POST['Condition'];
    $StoreQTY = $_POST['StoreQTY'];
    $sql = "update vnf_attribute set`ProductNo`='$ProductNo', `SKU`='$SKU', `Attribute1`='$Attribute1'
    , `Attribute2`='$Attribute2', `Attribute3`='$Attribute3'
    , `Attribute4`='$Attribute4', `Attribute5`='$Attribute5', `Attribute6`='$Attribute6'
    , `Attribute7`='$Attribute7', `Attribute8`='$Attribute8', `Attribute9`='$Attribute9'
    , `Attribute10`='$Attribute10', `Price`='$Price', `Cost`='$Cost', `Quantity`='$Quantity'
    , `Unit`='$Unit', `Weight`='$Weight', `Length`='$Length'
    , `Height`='$Height', `Width`='$Width', `ContainerCode`='$ContainerCode'
    , `BillingInterval`='$BillingInterval', `SubscriptionPeriod`='$SubscriptionPeriod'
    , `IntervalBegin`='$IntervalBegin', `NewBillType`='$NewBillType'
    , `StartupFee`='$StartupFee', `RenewUpdateInd`='$RenewUpdateInd', `Isbn`='$Isbn', `Mpn`='$Mpn'
    , `Upc`='$Upc', `Condition`='$Condition', `StoreQTY`='$StoreQTY' where AttributeID=".$id;
    mysql_query($sql);
    echo '<meta http-equiv="Refresh" content="0;URL=product_attribute_list.php?id='.$ProductNo.'"/>';
}
mysql_close($con);
 ?>
 <p></p>
<html>
<head>
<meta name="description" content="Admin<?php echo $tagdescription?>">
<meta name="keywords" content="<?php echo $tagkeywords?> Main">
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title><?php echo $tagtitle?></title>
<script type="text/javascript" src="jquery-1.4.2.js"></script>
	
<script type="text/javascript" src="simpletreemenu.js">
/***********************************************
* Simple Tree Menu- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
<link rel="stylesheet" type="text/css" href="simpletree.css" />
<LINK rel="StyleSheet" href="include/css_classes.css" type="text/css">

<SCRIPT LANGUAGE="JavaScript">
<!-- Hide code from non-js browsers
function validateForm()
{
  var valid="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
  var formObj;

  formObj = document.member;


  if (formObj.DepartmentName.value == "") {
    alert("You have not filled in Department Name");
    formObj.DepartmentName.focus();
    return false;
  }

  
   
       
 
return true;
}
// end hiding -->
</SCRIPT>

</head>



<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" link="#0000FF" vlink="#800080" alink="#FF0000" bgcolor="#FFFFFF">
<!-- -------------------Header---------------------------- -->
<?php include("include/header.php"); ?>
<!-- -------------------End Header---------------------------- -->


<div align="center">
<table border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="12%" valign="top">
		<img border="0" src="public/images/homepage/spider16.gif" width="200" height="1"></td>
		<td width="1%" valign="top">
		<img border="0" src="public/images/homepage/spider16.gif" width="16" height="1"></td>
		<td width="86%" valign="top">
		<img border="0" src="public/images/homepage/spider16.gif" width="16" height="1"></td>
	</tr>	
	<tr>
		<!-- ///////////////////Begin Leftmenu/////////////////// -->
		<td width="12%" valign="top" bgcolor="#FFFFFF">
		<?php include("include/leftmenu.php"); ?>
		</td>
		<!-- ///////////////////End Leftmenu/////////////////// -->
		
		<td width="1%" valign="top" background="public/images/homepage/16.gif">&nbsp;</td>
		<td width="86%" valign="top">
	<br>
<!-- -------------------Begin Body---------------------------- -->
<p class="title16B">&nbsp;Add New Atrribute</p>

    <form action="" method="post" name="appForm" id="appForm">
	<table border="1" width="50%" cellspacing="0" bordercolor="#FFF4FF" bgcolor="#FFFFFF">
<?php
    while ($row = mysql_fetch_assoc($result))
 {
?>
        <tr>
            <td>
                <table>		
                    <tr>
            			<td valign="top" width="180" align="right">Product</td>
            			<td valign="top" width="120">
            			<input readonly="true" type="text" name="ProductNo" id="ProductNo" value="<?php echo $row['ProductNo']?>" /></td>
            		</tr>
                     <tr>
            			<td valign="top" width="180" align="right">SKU</td>
            			<td valign="top" width="120">
            			<input type="text" name="SKU" id="SKU" value="<?php echo $row['SKU']?>"/></td>
            		</tr>
                    <tr>
            			<td valign="top" width="180" align="right">Attribute1</td>
            			<td valign="top" width="120">
            			<input type="text" name="Attribute1" id="Attribute1" value="<?php echo $row['Attribute1']?>"/></td>
            		</tr>
                     <tr>
            			<td valign="top" width="180" align="right">Attribute2</td>
            			<td valign="top" width="120">
            			<input type="text" name="Attribute2" id="Attribute2" value="<?php echo $row['Attribute2']?>"/></td>
            		</tr>
                    <tr>
            			<td valign="top" width="180" align="right">Attribute3</td>
            			<td valign="top" width="120">
            			<input type="text" name="Attribute3" id="Attribute3" value="<?php echo $row['Attribute3']?>"/></td>
            		</tr>
                    <tr>
            			<td valign="top" width="180" align="right">Attribute4</td>
            			<td valign="top" width="120">
            			<input type="text" name="Attribute4" id="Attribute4" value="<?php echo $row['Attribute4']?>"/></td>
            		</tr>
                    <tr>
            			<td valign="top" width="180" align="right">Attribute5</td>
            			<td valign="top" width="120">
            			<input type="text" name="Attribute5" id="Attribute5" value="<?php echo $row['Attribute5']?>"/></td>
            		</tr>
                    <tr>
            			<td valign="top" width="180" align="right">Attribute6</td>
            			<td valign="top" width="120">
            			<input type="text" name="Attribute6" id="Attribute6" value="<?php echo $row['Attribute6']?>"/></td>
            		</tr>
                    <tr>
            			<td valign="top" width="180" align="right">Attribute7</td>
            			<td valign="top" width="120">
            			<input type="text" name="Attribute7" id="Attribute7" value="<?php echo $row['Attribute7']?>"/></td>
            		</tr>
                    <tr>
            			<td valign="top" width="180" align="right">Attribute8</td>
            			<td valign="top" width="120">
            			<input type="text" name="Attribute8" id="Attribute8" value="<?php echo $row['Attribute8']?>"/></td>
            		</tr>
                    <tr>
            			<td valign="top" width="180" align="right">Attribute9</td>
            			<td valign="top" width="120">
            			<input type="text" name="Attribute9" id="Attribute9" value="<?php echo $row['Attribute9']?>"/></td>
            		</tr>
                    <tr>
            			<td valign="top" width="180" align="right">Attribute10</td>
            			<td valign="top" width="120">
            			<input type="text" name="Attribute10" id="Attribute10" value="<?php echo $row['Attribute10']?>"/></td>
            		</tr>
                     <tr>
            			<td valign="top" width="180" align="right">Price</td>
            			<td valign="top" width="120">
            			<input type="text" name="Price" id="Price" value="<?php echo $row['Price']?>"/></td>
            		</tr>
                     <tr>
            			<td valign="top" width="180" align="right">Cost</td>
            			<td valign="top" width="120">
            			<input type="text" name="Cost" id="Cost" value="<?php echo $row['Cost']?>"/></td>
            		</tr>
                     <tr>
            			<td valign="top" width="180" align="right">Quantity</td>
            			<td valign="top" width="120">
            			<input type="text" name="Quantity" id="Quantity" value="<?php echo $row['Quantity']?>"/></td>
            		</tr>
                     <tr>
            			<td valign="top" width="180" align="right">Unit</td>
            			<td valign="top" width="120">
            			<input type="text" name="Unit" id="Unit" value="<?php echo $row['Unit']?>"/></td>
            		</tr>
                     
                </table>
            </td>
            <td>
                <table>
                    <tr>
            			<td valign="top" width="180" align="right">Weight</td>
            			<td valign="top" width="120">
            			<input type="text" name="Weight" id="Weight" value="<?php echo $row['Weight']?>"/></td>
            		</tr>
                     <tr>
            			<td valign="top" width="180" align="right">Length</td>
            			<td valign="top" width="120">
            			<input type="text" name="Length" id="Length" value="<?php echo $row['Length']?>"/></td>
            		</tr>
                     <tr>
            			<td valign="top" width="180" align="right">Height</td>
            			<td valign="top" width="120">
            			<input type="text" name="Height" id="Height" value="<?php echo $row['Height']?>"/></td>
            		</tr>
                     <tr>
            			<td valign="top" width="180" align="right">Width</td>
            			<td valign="top" width="120">
            			<input type="text" name="Width" id="Width" value="<?php echo $row['Width']?>"/></td>
            		</tr>
                    <tr>
            			<td valign="top" width="180" align="right">ContainerCode</td>
            			<td valign="top" width="120">
            			<input type="text" name="ContainerCode" id="ContainerCode" value="<?php echo $row['ContainerCode']?>"/></td>
            		</tr>
                    <tr>
            			<td valign="top" width="180" align="right">BillingInterval</td>
            			<td valign="top" width="120">
            			<input type="text" name="BillingInterval" id="BillingInterval" value="<?php echo $row['BillingInterval']?>"/></td>
            		</tr>
                    <tr>
            			<td valign="top" width="180" align="right">SubscriptionPeriod</td>
            			<td valign="top" width="120">
            			<input type="text" name="SubscriptionPeriod" id="SubscriptionPeriod" value="<?php echo $row['SubscriptionPeriod']?>"/></td>
            		</tr>
                    <tr>
            			<td valign="top" width="180" align="right">IntervalBegin</td>
            			<td valign="top" width="120">
            			<input type="text" name="IntervalBegin" id="IntervalBegin" value="<?php echo $row['IntervalBegin']?>"/></td>
            		</tr>
                    <tr>
            			<td valign="top" width="180" align="right">NewBillType</td>
            			<td valign="top" width="120">
            			<input type="text" name="NewBillType" id="NewBillType" value="<?php echo $row['NewBillType']?>"/></td>
            		</tr>
                    <tr>
            			<td valign="top" width="180" align="right">StartupFee</td>
            			<td valign="top" width="120">
            			<input type="text" name="StartupFee" id="StartupFee" value="<?php echo $row['StartupFee']?>"/></td>
            		</tr>
                    <tr>
            			<td valign="top" width="180" align="right">RenewUpdateInd</td>
            			<td valign="top" width="120">
            			<input type="text" name="RenewUpdateInd" id="RenewUpdateInd" value="<?php echo $row['RenewUpdateInd']?>"/></td>
            		</tr>
                    <tr>
            			<td valign="top" width="180" align="right">Isbn</td>
            			<td valign="top" width="120">
            			<input type="text" name="Isbn" id="Isbn" value="<?php echo $row['Isbn']?>"/></td>
            		</tr>
                    <tr>
            			<td valign="top" width="180" align="right">Mpn</td>
            			<td valign="top" width="120">
            			<input type="text" name="Mpn" id="Mpn" value="<?php echo $row['Mpn']?>"/></td>
            		</tr>
                    <tr>
            			<td valign="top" width="180" align="right">Upc</td>
            			<td valign="top" width="120">
            			<input type="text" name="Upc" id="Upc" value="<?php echo $row['Upc']?>"/></td>
            		</tr>
                     <tr>
            			<td valign="top" width="180" align="right">Condition</td>
            			<td valign="top" width="120">
            			<input type="text" name="Condition" id="Condition" value="<?php echo $row['Condition']?>"/></td>
            		</tr>
                     <tr>
            			<td valign="top" width="180" align="right">StoreQTY</td>
            			<td valign="top" width="120">
            			<input type="text" name="StoreQTY" id="StoreQTY" value="<?php echo $row['StoreQTY']?>"/></td>
            		</tr>
                </table>
            </td>
        </tr>
 <?php
    }
 ?>          
		<tr>
			<td valign="top" colspan="2">
			<input type="submit" value="Update attribute" name="SubmitUpdate" /></td>
		</tr>
		
		
		<tr>
			<td valign="top" width="180" align="right">&nbsp;</td>
			<td valign="top">&nbsp;</td>
		</tr>
	</table>
	<p><br>
&nbsp;</p>
</form>

<!-- -------------------End Body---------------------------- -->

&nbsp;</td>
	</tr>

</table>
</div>
<!-- ----------------------------------------------- -->
<!-- \\\\\\\\\\\\\\\\\\\\\Begin Footer\\\\\\\\\\\\\\\\\\\\\ -->
<?php include("include/footer.php"); ?>
<!-- \\\\\\\\\\\\\\\\\\\\\End Footer\\\\\\\\\\\\\\\\\\\\\ -->
</body>

</html>